﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Controls.DataVisualization;

namespace ActivityTracker
{
    public class ChartLegendStyles
    {
        public static Style hidelegend()
        {
            Style legendStyle = new Style(typeof(Legend));
            legendStyle.Setters.Add(new Setter(Legend.VisibilityProperty, Visibility.Collapsed));
            legendStyle.Setters.Add(new Setter(Legend.WidthProperty, 0));
            legendStyle.Setters.Add(new Setter(Legend.HeightProperty, 0));
            return legendStyle;
        }

        public static Style showlegend()
        {
            Style legendStyle = new Style(typeof(Legend));
            legendStyle.Setters.Add(new Setter(Legend.VisibilityProperty, Visibility.Visible));
            legendStyle.Setters.Add(new Setter(Legend.HorizontalAlignmentProperty, "Center"));
            legendStyle.Setters.Add(new Setter(Legend.VerticalAlignmentProperty, "Center"));
            legendStyle.Setters.Add(new Setter(Legend.BorderBrushProperty, "#ffffffff"));
            return legendStyle;
        }
    }
}
